﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ServiceView.aspx.cs" Inherits="ServiceView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="ModuleContent">
        <ul class="NavigationButtons">
            <li>
                <asp:LinkButton ID="lbAddNew" CssClass="navigation_button" Text="Add New" runat="server"
                    PostBackUrl="~/serviceedit.aspx?m=liService" />
            </li>
        </ul>
    </div>
    <asp:GridView ID="ServiceGirdView" CssClass="skineedgrid" runat="server" DataSourceID="ServiceDS" AutoGenerateColumns="false" 
        Width="75%" DataKeyNames="ServiceID"  AllowSorting="true" 
        AllowPaging="true" PageSize="10">
        <Columns>
            <asp:BoundField DataField="ServiceID" HeaderText="ID" Visible="False" />
            <asp:BoundField DataField="Name" HeaderText="Title"  SortExpression="Name"/>
            <%--<asp:BoundField DataField="NameGeo" HeaderText="დასახელება(ქართული)" />--%>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="salemanager.aspx?id=<%#Eval("ServiceID") %>&m=liService">Discount</a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href="serviceedit.aspx?id=<%#Eval("ServiceID") %>&m=liService">Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

    <asp:ObjectDataSource ID="ServiceDS" runat="server" SelectMethod="GetAll"  SortParameterName="sortBy" TypeName="DAL.DBManagers.ServicesManager"></asp:ObjectDataSource>
</asp:Content>

